package com.spark.basecommon.utils;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * @author fuqiang
 * @Description mybatis-plus查询工具
 * @Date 2020/10/12
 */
public class QueryUtil {

    /**
     * 获取查询bean
     * @return
     */
    public static <T> LambdaQueryWrapper<T> getQueryBean(Class<T> t){
        QueryWrapper<T> queryWrapper = new QueryWrapper<>();
        queryWrapper.clear();
        return queryWrapper.lambda();
    }

}
